package com.alm.handle.util;

import java.util.HashMap;
import java.util.Map;
import java.util.Optional;

public class DevTypeUtil {
    public static Map<Byte, Boolean> EleSocketMap = new HashMap<>();
    public static Boolean isEleContain(byte type){
        return Optional.ofNullable(EleSocketMap.get(type)).orElse(Boolean.FALSE);
    }

    public static Map<Byte, Boolean> getWaySocketMap = new HashMap<>();
    public static Boolean isGetWayContain(byte type){
        return Optional.ofNullable(getWaySocketMap.get(type)).orElse(Boolean.FALSE);
    }
    
}
